package org.wangchaocheng.cloudgallery.commond.user;

import java.util.List;

import com.alibaba.cola.dto.Command;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户角色保存命令
 *
 * @author wangchaocheng
 * @date 2025/04/07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserRoleSaveCmd extends Command {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不可为空")
    private Long userId;

    /**
     * 角色ID
     */
    @NotEmpty(message = "角色ID不可为空")
    private List<Long> roleIds;

}
